<?php

namespace App\Http\Controllers;

use App\Models\City;
use Illuminate\Http\Request;

class CityController extends BaseController
{
    public function getCity(Request $request)
    {
        $cityID = $request->get('id');
        $cityData = City::where('pid', $cityID)->select('id','name')->get();
        return $this->writeJson(0, $cityData, 'success');
    }
}
